package org.bright.service.Impl;

import org.apache.log4j.Logger;
import org.bright.entity.Book;
import org.bright.mapper.BookMapper;
import org.bright.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceImpl implements BookService {
    @Autowired
    private BookMapper bookMapper;

    @Override
    public List<Book> selectBookByBookNameAndAuthor(String bookName, String author) throws InterruptedException {
        return bookMapper.selectBookByBookNameAndAuthor(bookName,author);
    }

    @Override
    public int updateIntoBook(Book book) {
        return bookMapper.updateIntoBook(book);
    }

    @Override
    public int insertIntoBook(Book book) {
        return bookMapper.insertIntoBook(book);
    }
}
